package com.jvtd.jpush;

import android.content.Context;

import cn.jpush.android.api.JPushMessage;
import cn.jpush.android.service.JPushMessageReceiver;

/**
 * 自定义JPush message 接收器,包括操作tag/alias的结果返回(仅仅包含tag/alias新接口部分)
 */
public class JvtdPushTagAliasReceiver extends JPushMessageReceiver
{

  @Override
  public void onTagOperatorResult(Context context, JPushMessage jPushMessage)
  {
    JvtdPushTagAliasHelper.getInstance().onTagOperatorResult(context, jPushMessage);
    super.onTagOperatorResult(context, jPushMessage);
  }

  @Override
  public void onCheckTagOperatorResult(Context context, JPushMessage jPushMessage)
  {
    JvtdPushTagAliasHelper.getInstance().onCheckTagOperatorResult(context, jPushMessage);
    super.onCheckTagOperatorResult(context, jPushMessage);
  }

  @Override
  public void onAliasOperatorResult(Context context, JPushMessage jPushMessage)
  {
    JvtdPushTagAliasHelper.getInstance().onAliasOperatorResult(context, jPushMessage);
    super.onAliasOperatorResult(context, jPushMessage);
  }

  @Override
  public void onMobileNumberOperatorResult(Context context, JPushMessage jPushMessage)
  {
    JvtdPushTagAliasHelper.getInstance().onMobileNumberOperatorResult(context, jPushMessage);
    super.onMobileNumberOperatorResult(context, jPushMessage);
  }
}
